# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo2333
# Description:  改变数组的纬度
# Author:       yzl
# Date:         2019-03-11
#-------------------------------------------------------------------------------

from numpy import *

b = arange(24).reshape(2,3,4)
print(b)

b1 = b.ravel()
print(b1)

b2 = b.flatten()
print(b2)

b.shape = (6,4)
print(b)

b3 = b.transpose()
print(b3)

b.resize(2,12)
print(b)

